function delegate

函数委托

常用释义

词性释义

函数委托
例句
  • 全部
1·Then, when the function delegate is invoked the specified method of the specified instance is called.
接着,调用此函数委托时,将调用指定实例的指定方法。
2·Once we have a delegate type in the metadata and a target function we'd like to call, we must form an instance of the delegate over a target.
在一个元数据中,一旦我们有了一个委托类型和一个我们想要调用的目标函数,我们必须从目标形成一个实例。
3·The constructor is used to form a delegate over a target object and a function pointer.
这构造器用来通过一个目标对象和一个函数指针形成一个委托。
4·Note that the handler function must have the signature defined by the delegate.
注意该处理器函数必须具备由委托定义的签名。
5·An anonymous function is defined within the context of another function, usually by assigning it to a delegate variable.
匿名函数通常通过分配到一个代理变量,来在其他函数的上下文中定义。
6·Depending on your class, you may also want to delegate part of the computation to the equals() or hashCode() function of the superclass.
根据您使用的类,您可能希望降低superclass的 equals() 或 hashCode() 功能一部分计算能力。
7·EventHandler is a delegate for a function that takes an Object (the sender) and eventargs.
这里EventHandler是某个函数的委托,该函数带有参数:Object(也就是sender)和eventargs。
8·To use Delegate, you need to attach some function to it.
要使用委派,你需要一些附加功能,给它。
9·The main reason is that I can delegate the error handling in one single place: in my main function, where all my exceptions will be caught.
最主要的原因是,我可以委托在一个地方的错误处理:在我的主要职能,在我所有的异常都会被捕获。
10·In addition, where a function pointer contains only a reference to a particular function, a delegate consists of a reference to an object, and references to one or more methods within the object.
另外,函数指针只包含对特定函数的引用,而委托由对对象的引用以及对该对象内一个或多个方法的引用组成。